[index]

TextColor Property

Syntax: set the textColor of [<part> of | <chunk> of] <object> to <color> Applies to bitmaps, datasheets, fields, movies, charts, datasheets, picklists

Description

The textColor property determines the color of the text in some objects. Color can be applied to the following object parts: Bitmap and field parts: label DataSheet and pickList parts: colLabel, column (col) Field chunks: char, item, line, word When setting the textColor property, you may use a number or a named color constant for the <color> parameter. However, the value of the textColor property is always returned as a number. The textColor property can be changed by using the set command and retrieved by using the get command. Setting textColor for movies and bitmaps changes the color of the object's label only. If you do not specify a part, setting textColor on a field, pickList, or dataSheet affects only the data contained in the object.

Notes

If you wish to change the textColor of a chunk of a field, the field's multifont property must be set to true. You must specify the text whose color you wish to change using a command such as: set the textColor of word 2 of fld id 2 to green If the multifont property is not true then the preceding line sets the entire field to green. For fields, the textColor is synonymous with the foreColor if multiFont is set to false and you are setting the text color of the whole field. For example, set the foreColor of fld id 2 to green set the textColor of fld id 2 to green are equivalent scripting operations; however, there is no concept of foreColor for field labels or chunks, or for whole fields if multiFont is set to true. Color numbers range from 0 to 255. The following lists the named color values. Color Name Color Number _____________________________ black 255 white 0 red 216 green 229 blue 236 cyan 192 magenta 32 yellow 5 purple 104 navy 239 olive 89 maroon 219 lime 185 light gray 247 gray 249
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.